package my.mall.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 素材库分组
 * </p>
 *
 * @author fengbo
 * @since 2024-04-22
 */
@TableName("mall_media_group")
class MediaGroup {

    @TableId(value = "id", type = IdType.AUTO)
    var id: Long? = null

    /**
     * 组名
     */
    var groupName: String? = null

    /**
     * 素材数
     */
    var mediaNum: Int? = null

    /**
     * 店铺ID
     */
    var storeId: Long? = null

    /**
     * 删除标识:0-未删除；1-已删除
     */
    var deletedFlag: Byte? = null

    companion object {

        const val ID : String = "id"


        const val GROUP_NAME : String = "group_name"


        const val MEDIA_NUM : String = "media_num"


        const val STORE_ID : String = "store_id"


        const val DELETED_FLAG : String = "deleted_flag"

    }

    override fun toString(): String {
        return "MediaGroup{" +
        "id=" + id +
        ", groupName=" + groupName +
        ", mediaNum=" + mediaNum +
        ", storeId=" + storeId +
        ", deletedFlag=" + deletedFlag +
        "}"
    }
}
